<?php
    /**
     *
     * @var serlocid
     * @ManyToOne(targetEntity="customers")
     * @JoinColumns({
     *  @JoinColumn(name="customer_id", referencedColumnName="id")
     * })
     */
    private $serlocid;
    /**
     *
     * @var billtoid
     * @ManyToOne(targetEntity="customers")
     * @JoinColumns({
     *  @JoinColumn(name="customer_id", referencedColumnName="id")
     * })
     */
    private $billtoid;
    /**
     *
     * @var contact
     * @ManyToOne(targetEntity="customers")
     * @JoinColumns({
     *  @JoinColumn(name="customer_id", referencedColumnName="id")
     * })
     */
    private $contact;


    ================
        /**
     *
     * @OneToMany(targetEntity="Ticket",mappedBy="billtoid", cascade={"persist"})
     */
    private $billtoid;
    /**
     *
     * @OneToMany(targetEntity="Ticket",mappedBy="contact", cascade={"persist"})
     */
    private $contact;
    /**
     *
     * @OneToMany(targetEntity="Ticket",mappedBy="serlocid", cascade={"persist"})
     */
    private $serlocid;


    ==================
        /**
     *
     * @var ticprevbal
     * @Column(type="DECIMAL",precision=4,scale=2)
     */
    private $ticprevbal;
    /**
     *
     * @var tictax
     * @Column(type="DECIMAL",precision=4,scale=2)
     */
    private $tictax;
    /**
     *
     * @var tictotal
     * @Column(type="DECIMAL",precision=4,scale=2)
     */
    private $tictotal;
    /**
     *
     * @var ticserfee
     * @Column(type="DECIMAL",precision=4,scale=2)
     */
    private $ticserfee;
    /**
     *
     * @var active
     * @Column(type="BOOLEAN")
     */
    private $active;
    /**
     *
     * @OneToMany(targetEntity="customers",mappedBy="serlocid", cascade={"persist"})
     */
    private $contactid;
    /**
     *
     * @OneToMany(targetEntity="customers",mappedBy="contactid", cascade={"persist"})
     */
    private $serlocid;
    /**
     *
     * @OneToMany(targetEntity="customers",mappedBy="billtoid", cascade={"persist"})
     */
    private $billtoid;




        public function __construct($billtoid = null, $serlocid = null, $contactid = null)
    {
        if ($billtoid  == null) $this->billtoid = 1;
        else $this->billtoid = $billtoid;
        if ($serlocid  == null) $this->billtoid = $billtoid;
        else $this->billtoid = $serlocid;
        if ($contactid == null) $this->billtoid = $billtoid;
        else $this->billtoid = $contactid;
        $this->date = new \DateTime(date("Y-m-d H:i:s"));
    }

    /**
     *
     * @OneToMany(targetEntity="customer",mappedBy="serlocid", cascade={"persist"})
     */
    private $serlocid;
    /**
     *
     * @OneToMany(targetEntity="customer",mappedBy="billtoid", cascade={"persist"})
     */
    private $billtoid;

    /**
     *
     * @OneToMany(targetEntity="Ticket",mappedBy="billtoid", cascade={"persist"})
     */
    private $billtoid;
    /**
     *
     * @OneToMany(targetEntity="Ticket",mappedBy="serlocid", cascade={"persist"})
     */
    private $serlocid;
